package com.warren.aop;

/**
 * @author warren
 * @create 2021-08-24 14:48
 * @Description 定义类匹配类，用于切点找到给定的接口和目标类
 */
public interface ClassFilter {
    /**
     * 切入点应该应用于给定的接口还是目标类？
     * @param clazz the candidate target class
     * @return whether the advice should apply to the given target class
     */
    boolean matches(Class<?> clazz);
}
